Video signal processing method and device

ABSTRACT

A method for processing a vide signal, according to the present invention comprises generating a reference picture list based on a current picture reference flag for a current picture, obtaining motion information about a current block in the current picture, and restoring the current block using the motion information of the current block and the reference picture list relating to the current picture.

TECHNICAL FIELD

The present invention relates to a method and an apparatus for processing a video signal.

BACKGROUND ART

Demands for high-resolution, high-quality images such as High Definition (HD) images and Ultra High Definition (UHD) images have recently increased in various fields of applications. As video data has a higher resolution and higher quality, the video data is larger in amount than traditional video data. Therefore, if video data is transmitted on an existing medium such as a wired/wireless wideband circuit or stored in an existing storage medium, transmission cost and storage cost increase. To avert these problems encountered with higher-resolution, higher-quality video data, high-efficiency video compression techniques may be used.

There are a variety of video compression techniques including inter-picture prediction in which pixel values included in a current picture are predicted from a picture previous to or following the current picture, intra-picture prediction in which pixel values included in a current picture are predicted using pixel information in the current picture, and entropy encoding in which a short code is assigned to a more frequent value and a long code is assigned to a less frequent value. Video data may be compressed effectively and transmitted or stored, using such a video compression technique.

Along with the increasing demands for high-resolution videos, demands for three-dimensional (3D) video content as a new video service have been increasing. A video compression technique for effectively providing HD and UHD 3D video content is under discussion.

DISCLOSURE Technical Problem

An object of the present invention is to provide a method and apparatus for predicting or restoring based on a current picture reference mode in encoding/decoding a video signal.

An object of the present invention is to provide a method and apparatus for deriving a block vector used in a current picture reference mode in encoding/decoding a video signal.

An object of the present invention is to provide a method and apparatus for generating a reference picture list for a current picture reference mode in encoding/decoding a video signal.

Technical Solution

A video signal decoding method and apparatus according to the present invention includes: generating a reference picture list based on a current picture reference flag for a current picture; obtaining motion information about the current block in the current picture; and restoring the current block using the motion information of the current block and the reference picture list.

In the method and apparatus for decoding a video signal according to the present invention, the current picture reference flag indicates whether at least one block belonging to a video sequence or a picture uses a current picture reference mode.

In the method and apparatus for decoding a video signal according to the present invention, the current picture reference mode refers to a method of predicting or restoring the current block by referring to a pre-reconstructed block in the current picture.

In the method and apparatus for decoding a video signal according to the present invention, the current picture is added to the reference picture list related to the current picture based on the current picture reference flag.

A video signal decoding method and apparatus according to the present invention includes: arranging temporal reference pictures used for inter prediction of a current picture and generating a reference picture list by arranging the current picture after the arranged temporal reference pictures based on the current picture reference flag.

In the method and apparatus for decoding a video signal according to the present invention, the temporal reference picture includes at least one of a short-term reference picture and a long-term reference picture, and the temporal reference picture is arranged based on a priority order between a short-term reference picture and a long-term reference picture.

In the method and apparatus for decoding a video signal according to the present invention, the step of restoring the current block may further include determining whether or not the current picture reference mode is used in the current block, based on at least one of a reference picture index of the current block, a slice type, or a partition mode.

A method and apparatus for encoding a video signal according to the present invention includes: generating a reference picture list based on a current picture reference flag for a current picture; obtaining motion information about the current block in the current picture; and restoring the current block using the motion information of the current block and the reference picture list for the current picture.

In the method and apparatus for encoding a video signal according to the present invention, the current picture reference flag indicates whether at least one block belonging to a video sequence or a picture uses the current picture reference mode.

In the method and apparatus for encoding a video signal according to the present invention, the current picture reference mode refers to a method of predicting or restoring the current block by referring to a pre-reconstructed block in the current picture.

In the method and apparatus for encoding a video signal according to the present invention, the current picture is added to the reference picture list related to the current picture based on the current picture reference flag.

A video signal encoding method and apparatus according to the present invention includes: arranging temporal reference pictures used for inter-prediction of a current picture and generating a reference picture list by arranging the current picture after the arranged temporal reference pictures based on the current picture reference flag.

In the method and apparatus for encoding a video signal according to the present invention, the temporal reference picture may include at least one of a short-term reference picture and a long-term reference picture, and the temporal reference picture is arranged based on a priority order between a short-term reference picture and a long-term reference picture.

In the method and apparatus for encoding a video signal according to the present invention, the step of restoring the current block may further include determining whether or not the current picture reference mode is used in the current block, based on at least one of a reference picture index of the current block, a slice type, or a partition mode.

Advantageous Effects

According to the present invention, it is possible to improve the efficiency of predicting or restoring the current block based on the current picture reference mode.

According to the present invention, the block vector used in the current picture reference mode may be efficiently derived.

According to the present invention, a reference picture list for the current picture reference mode may be effectively generated.

DESCRIPTION OF DRAWINGS

FIG. 1 is a block diagram illustrating a video encoding apparatus according to an embodiment of the present invention.

FIG. 2 is a block diagram illustrating a video decoding apparatus according an exemplary embodiment of the present invention.

FIG. 3 illustrates a current picture reference mode according to an embodiment of the present invention.

FIG. 4 illustrates a method of restoring the current block based on a current picture reference mode according to an embodiment of the present invention.

FIG. 5 illustrates a method of specifying a short-term reference picture stored in a decoding picture buffer according to an embodiment of the present invention.

FIG. 6 illustrates a method of specifying a long-term reference picture according to an embodiment of the present invention.

FIG. 7 illustrates a method of constructing a reference picture list using a short-term reference picture and a long-term reference picture according to an embodiment of the present invention.

FIGS. 8 to 10 illustrate a method of constructing a reference picture list for a current picture reference mode according to an embodiment to which the present invention is applied.

BEST MODE FOR CARRYING OUT THE INVENTION

A video signal decoding method and apparatus according to the present invention includes: generating a reference picture list based on a current picture reference flag for a current picture; obtaining motion information about the current block in the current picture; and restoring the current block using the motion information of the current block and the reference picture list.

In the method and apparatus for decoding a video signal according to the present invention, the current picture reference flag indicates whether at least one block belonging to a video sequence or a picture uses a current picture reference mode.

In the method and apparatus for decoding a video signal according to the present invention, the current picture reference mode refers to a method of predicting or restoring the current block by referring to a pre-reconstructed block in the current picture.

In the method and apparatus for decoding a video signal according to the present invention, the current picture is added to the reference picture list related to the current picture based on the current picture reference flag.

A video signal decoding method and apparatus according to the present invention includes: arranging temporal reference pictures used for inter prediction of a current picture and generating a reference picture list by arranging the current picture after the arranged temporal reference pictures based on the current picture reference flag.

In the method and apparatus for decoding a video signal according to the present invention, the temporal reference picture includes at least one of a short-term reference picture and a long-term reference picture, and the temporal reference picture is arranged based on a priority order between a short-term reference picture and a long-term reference picture.

In the method and apparatus for decoding a video signal according to the present invention, the step of restoring the current block may further include determining whether or not the current picture reference mode is used in the current block, based on at least one of a reference picture index of the current block, a slice type, or a partition mode.

A method and apparatus for encoding a video signal according to the present invention includes: generating a reference picture list based on a current picture reference flag for a current picture; obtaining motion information about the current block in the current picture; and restoring the current block using the motion information of the current block and the reference picture list for the current picture.

In the method and apparatus for encoding a video signal according to the present invention, the current picture reference flag indicates whether at least one block belonging to a video sequence or a picture uses the current picture reference mode.

In the method and apparatus for encoding a video signal according to the present invention, the current picture reference mode refers to a method of predicting or restoring the current block by referring to a pre-reconstructed block in the current picture.

In the method and apparatus for encoding a video signal according to the present invention, the current picture is added to the reference picture list related to the current picture based on the current picture reference flag.

A video signal encoding method and apparatus according to the present invention includes: arranging temporal reference pictures used for inter-prediction of a current picture and generating a reference picture list by arranging the current picture after the arranged temporal reference pictures based on the current picture reference flag.

In the method and apparatus for encoding a video signal according to the present invention, the temporal reference picture may include at least one of a short-term reference picture and a long-term reference picture, and the temporal reference picture is arranged based on a priority order between a short-term reference picture and a long-term reference picture.

In the method and apparatus for encoding a video signal according to the present invention, the step of restoring the current block may further include determining whether or not the current picture reference mode is used in the current block, based on at least one of a reference picture index of the current block, a slice type, or a partition mode.

MODE FOR CARRYING OUT THE INVENTION

The present invention may be changed and modified variously and be illustrated with reference to different exemplary embodiments, some of which will be described and shown in the drawings. However, these embodiments are not intended for limiting the invention but are construed as including includes all modifications, equivalents and replacements which belong to the spirit and technical scope of the invention. Like reference numerals in the drawings refer to like elements throughout.

Although the terms first, second, etc. may be used to describe various elements, these elements should not be limited by these terms. These terms are used only to distinguish one element from another element. For example, a first element could be termed a second element and a second element could be termed a first element likewise without departing from the teachings of the present invention. The term “and/or” includes any and all combinations of a plurality of associated listed items.

It will be understood that when an element is referred to as being “connected to” or “coupled to” another element, the element can be directly connected or coupled to another element or intervening elements. On the contrary, when an element is referred to as being “directly connected to” or “directly coupled to” another element, there are no intervening elements present.

The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the singular forms “a,” “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “include” and/or “have,” when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.

Hereinafter, exemplary embodiments of the invention will be described in detail with reference to the accompanying drawings. Like reference numerals in the drawings refer to like elements throughout, and redundant descriptions of like elements will be omitted herein.

FIG. 1 is a block diagram illustrating a video encoding apparatus according to an embodiment of the present invention.

Referring to FIG. 1, the video encoding apparatus 100 includes a picture dividing unit 110, prediction units 120 and 125, a transform unit 130, a quantization unit 135, a reordering unit 160, an entropy encoding unit 165, an inverse quantization unit 140, an inverse transform unit 145, a filter unit 150, and a memory 155.

Each of the elements shown in FIG. 1 is shown independently to represent different characteristic functions in the video encoding apparatus, and does not mean that each element is composed of separate hardware or one software configuration unit. That is, the elements are independently arranged for convenience of description, wherein at least two elements may be combined into a single element, or a single element may be divided into a plurality of elements to perform functions. It is to be noted that embodiments in which some elements are integrated into one combined element and/or an element is divided into multiple separate elements are included in the scope of the present invention without departing from the essence of the present invention.

Some elements are not essential to the substantial functions in the invention and may be optional constituents for merely improving performance. The invention may be embodied by including only constituents essential to embodiment of the invention, except for constituents used to merely improve performance. The structure including only the essential constituents except for the optical constituents used to merely improve performance belongs to the scope of the invention.

The picture dividing unit 110 may divide an input picture into at least one processing unit. Here, the processing unit may be a prediction unit (PU), a transform unit (TU) or a coding unit (CU). The picture dividing unit 110 may divide one picture into a plurality of combinations of CUs, PUs and TUs and encode the picture by selecting one combination of CUs, PUs and TUs on the basis of a predetermined criterion (for example, a cost function).

For example, one picture may be partitioned into a plurality of CUs. A recursive tree structure, such as a quad tree structure, may be used to partition a picture into CUs. A CU, for which a picture or a CU of a maximum size may be as root, may be partitioned into sub-coding units with as many child nodes as the partitioned CUs. A CU which is not partitioned any more in accordance with a predetermined limitation is a leaf node. That is, assuming that a CU may be partitioned into quadrants only, a single CU may be partitioned into at most four different CUs.

In the embodiments of the invention, a CU may be used to refer to not only a unit of encoding but also a unit of decoding.

A PU may be partitioned into at least one square or rectangular form with the same size in a CU. For PUs partitioned from a same CU, a PU may have different shape and/or size from another PU.

When a PU for intra prediction is generated based on a CU and the CU is not a minimum CU, the CU may be subjected to intra prediction without being partitioned into plural PUs (N×N).

The prediction units 120 and 125 may include an inter prediction unit 120 to perform inter prediction and an intra prediction unit 125 to perform intra prediction. The prediction units 120 and 125 may determine which of inter prediction and intra prediction is performed on a PU, and may determine specific information (for example, an intra prediction mode, a motion vector, and a reference picture) of the determined prediction method. Here, a processing unit on which prediction is performed may be different from a processing unit for which a prediction method and specific information thereon are determined. For example, a prediction method and a prediction mode may be determined for each PU, while prediction may be performed for each TU. A residual value (residual block) between a generated predicted block and an original block may be input to the transform unit 130. Further, prediction mode information, motion vector information and the like used for prediction may be encoded along with the residual value by the entropy encoding unit 165 and be transmitted to the decoding apparatus. When a specific encoding mode is used, the original block may be encoded and transmitted to the decoding apparatus without generating a prediction block by the prediction units 120 and 125.

The inter prediction unit 120 may predict a PU based on information on at least one picture among a previous picture of a current picture and a subsequent picture of a current picture. In some cases, the inter prediction unit 120 may predict a PU based on information of a partially encoded region in the current picture. The inter prediction unit 120 may include a reference picture interpolation unit, a motion prediction unit, and a motion compensation unit.

The reference picture interpolation unit may be supplied with reference picture information from the memory 155 and generate pixel information less than or equal to an integer pixel on a reference picture. In the case of luma pixels, a DCT-based 8-tap interpolation filter with a variable filter coefficient may be used to generate pixel information less than or equal to an integer pixel in a unit of a ¼ pixel. In the case of chroma pixels, a DCT-based 4-tap interpolation filter with a variable filter coefficient may be used to generate pixel information less than or equal to an integer pixel in a unit of a ⅛ pixel.

The motion prediction unit may perform motion prediction on the basis of the reference picture interpolated by the reference picture interpolation unit. Various methods, such as a full search-based block matching algorithm (FBMA), a three-step search (TSS) algorithm and a new three-step search (NTS) algorithm, may be used to calculate a motion vector. A motion vector has a motion vector value in the unit of a ½ or ¼ pixel on the basis of an interpolated pixel. The motion prediction unit may predict a current PU using different motion prediction methods. Various methods, such as skip mode, merge mode, and advanced motion vector prediction (AMVP) mode, intra block copy mode, etc. may be used as the motion prediction method.

The intra prediction unit 125 may generate a PU on the basis of information on a reference pixel neighboring to a current block. When a reference pixel is a pixel for which inter prediction has been performed because a block neighboring to the current PU is a block for which inter prediction has been performed, information on a reference pixel in the block for which inter prediction has been performed may be replaced with information on a reference pixel in a block for which intra prediction has been performed. That is, when a reference pixel is not available, information on the unavailable reference pixel may be replaced with information on at least one reference pixel of the available reference pixels.

A prediction mode of intra prediction includes a directional prediction mode in which reference pixel information is used according to a prediction direction and a non-directional prediction mode in which information on direction is not used in performing prediction. A mode for predicting luma information and a mode for predicting chroma information may be different from each other. Further, intra prediction mode information used to obtain luma information or predicted luma signal information may be used to predict chroma information.

When a PU and a TU have the same size, intra prediction on the PU may be performed based on a left pixel, an upper-left pixel and an upper pixel of the PU. On the other hand, when a PU and a TU have different sizes, intra prediction may be performed by using reference pixels which are determined based on the TU. Intra prediction using N×N partitioning may be performed only for a minimum CU.

In the intra prediction method, a predicted block may be generated by applying an adaptive intra smoothing (AIS) filter to the reference pixels according to the prediction mode. Different types of AIS filters may be applied to the reference pixels. In the intra prediction method, the intra prediction mode of a current PU may be predicted from an intra prediction mode of a PU neighboring to the current PU. In predicting the prediction mode of the current PU using mode information predicted from a neighboring PU, when the current PU and the neighboring PU have the same intra prediction mode, information indicating that the current PU and the neighboring PU have the same prediction mode may be transmitted using predetermined flag information. When the current PU and the neighboring PU have different prediction modes, information on the prediction mode of the current block may be encoded by entropy encoding.

A residual block including residual information may be generated. The residual information is a difference between the original block of the PU and the predicted block of a PU generated by the prediction units 120 and 125. The generated residual block may be input to the transform unit 130.

The transform unit 130 may transform the residual block using a transform method such as Discrete Cosine Transform (DCT), Discrete Sine Transform (DST) or KLT. The residual block includes information on the residual between the PU generated by the prediction units 120 and 125 and the original block. A transform method to be used to transform the residual block may be determined among DCT, DST and KLT on the basis of the information on the intra prediction mode of the PU which is used to generate the residual block.

The quantization unit 135 may quantize values transformed into a frequency domain by the transform unit 130. A quantization coefficient may be changed depending on a block or importance of an image. Values output from the quantization unit 135 may be provided to the dequantization unit 140 and the rearrangement unit 160.

The rearrangement unit 160 may rearrange quantized coefficients.

The rearrangement unit 160 may change a two-dimensional (2D) block of coefficients into a one-dimensional (1D) vector of coefficients through coefficient scanning. For example, the rearrangement unit 125 may change a 2D block of coefficients into a 1D vector of coefficients by scanning from DC coefficients to coefficients of a high frequency domain using zigzag scanning. Vertical scanning for scanning a 2D block of coefficients in a vertical and horizontal scanning for scanning a 2D block of coefficients in a horizontal direction may be used depending on a size of a TU and an intra prediction mode, instead of zigzag scanning. That is, a scanning method may be selected based on the size of the TU and the intra prediction mode, among zigzag scanning, vertical scanning, and horizontal scanning.

The entropy encoding unit 165 may perform entropy encoding on the basis of the values obtained by the rearrangement unit 160. Various encoding methods, such as exponential Golomb coding, context-adaptive variable length coding (CAVLC), or context-adaptive binary arithmetic coding (CABAC), may be used for entropy encoding.

The entropy encoding unit 165 may encode a variety of information, such as residual coefficient information and block type information on a CU, prediction mode information, partitioning unit information, PU information, transfer unit information, motion vector information, reference frame information, block interpolation information and filtering information from the rearrangement unit 160 and the prediction units 120 and 125.

The entropy encoding unit 165 may entropy-encode coefficients of a CU input from the rearrangement unit 160.

The dequantization unit 140 and the inverse transform unit 145 dequantize the values which are quantized by the quantization unit 135 and inverse-transform the values which are transformed by the transform unit 130. A reconstructed block may be generated by adding the residual values to the predicted PU. The residual values may be generated by the dequantization unit 140 and the inverse transform unit 145. The predicted PU may be predicted by the motion vector prediction unit, the motion compensation unit, and the intra prediction unit of the prediction units 120 and 125.

The filter unit 150 may include at least one of a deblocking filter, an offset unit, and an adaptive loop filter (ALF).

The deblocking filter may remove block distortion generated by boundaries between blocks in a reconstructed picture. Whether to apply the deblocking filter to a current block may be determined on the basis of pixels included in several rows or columns of the block. When the deblocking filter is applied to a block, a strong filter or a weak filter may be applied depending on a required deblocking filtering strength. When horizontal filtering and vertical filtering are performed in applying the deblocking filter, the horizontal filtering and vertical filtering may be performed in parallel.

The offset unit may apply the offset with respect to the original image to the deblocking filtered image, in units of pixels. A region to which the offset may be applied may be determined after partitioning pixels of a picture into a predetermined number of regions. The offset may be applied to the determined region in consideration of edge information on each pixel or the method of applying the offset to the determined region.

The ALF may perform filtering based on a comparison result of the filtered reconstructed image and the original image. Pixels included in an image may be partitioned into predetermined groups, a filter to be applied to each group may be determined, and differential filtering may be performed for each group. Information on whether to apply the ALF may be transferred by each coding unit (CU) and a shape and filter coefficients of an ALF to be applied to each block may vary. Further, an ALF with the same form (fixed form) may be applied to a block regardless of characteristics of the block.

The memory 155 may store a reconstructed block or picture output from the filter unit 150, and the stored reconstructed block or picture may be supplied to the prediction units 120 and 125 when performing inter prediction.

FIG. 2 is a block diagram illustrating a video decoding apparatus according an exemplary embodiment of the present invention.

Referring to FIG. 2, the video decoding apparatus 200 may include an entropy decoding unit 210, a rearrangement unit 215, a dequantization unit 220, an inverse transform unit 225, prediction units 230 and 235, a filter unit 240, and a memory 245.

When a video bitstream is input from the video encoding apparatus, the input bitstream may be decoded according to an inverse process of the video encoding process performed in the video encoding apparatus.

The entropy decoding unit 210 may perform entropy decoding according to an inverse process of the entropy encoding process by the entropy encoding unit of the video encoding apparatus. For example, various methods, such as exponential Golomb coding, CAVLC or CABAC, may be used for entropy encoding, corresponding to the method used by the video encoding apparatus.

The entropy decoding unit 210 may decode information associated with intra prediction and inter prediction performed by the encoding apparatus.

The rearrangement unit 215 may perform rearrangement on the bitstream entropy-decoded by the entropy decoding unit 210 on the basis of the rearrangement method of the encoding unit. The rearrangement unit 215 may reconstruct and rearrange coefficients of a 1D vector form into coefficients of a 2D block. The rearrangement unit 215 may be provided with information on coefficient scanning performed by the encoding apparatus and may perform rearrangement using a method of inversely scanning the coefficients, on the basis of scanning order performed by the encoding apparatus.

The dequantization unit 220 may perform dequantization on the basis of a quantization parameter provided from the encoding apparatus and the rearranged coefficients of the block.

The inverse transform unit 225 may perform inverse transform performed by the transform unit (that is, inverse DCT, inverse DST or inverse KLT) on a result of quantization performed by the video encoding apparatus. Inverse transform may be performed on the basis of a transfer unit determined by the video encoding apparatus. The transform unit 225 of the video decoding apparatus may selectively perform the transform scheme (e.g., DCT, DST, KLT) depending on a plurality of information elements, such as a prediction method, a size of the current block and a prediction direction, etc.

The prediction units 230 and 235 may generate a prediction block on the basis of information for generating prediction block and information on a previously-decoded block or picture provided. The information for generating prediction block may be provided from the entropy decoding unit 210. The information on a previously-decoded block or picture may be provided from the memory 245

Similarly to the operation of the video encoding apparatus as described above, when a PU and a TU have the same size, intra prediction on the PU is performed based on left pixels, an upper-left pixel and upper pixels of the PU. On the other hand, when a PU and a TU have different sizes, intra prediction may be performed using reference pixels which are determined based on the TU. Intra prediction using N×N partitioning may be used only for a minimum CU.

The prediction units 230 and 235 may include a PU determination unit, an inter prediction unit and an intra prediction unit. The PU determination unit may receive a variety of information, such as PU information, prediction mode information on an intra prediction method and motion prediction-related information on an inter prediction method, etc. from the entropy decoding unit 210, may determine a PU for a current CU. The PU determination unit may determine which of the inter prediction and the intra prediction is performed on the PU. An inter prediction unit 230 may perform inter prediction on a current PU on the basis of information on at least one picture among a previous picture and a subsequent picture of a current picture including the current PU. An inter prediction unit 230 may use information necessary for inter prediction for the current PU provided from the video encoding apparatus. The inter prediction may be performed on the basis of the information of the pre-reconstructed partial region in the current picture including the current PU.

In order to perform inter prediction, it may be determined, in an unit of a CU, whether a motion prediction method for a PU included in the CU is a skip mode, a merge mode, an AMVP mode or intra block copy mode.

An intra prediction unit 235 may generate a prediction block on the basis of pixel information in a current picture. When a PU is a PU for which intra prediction is performed, intra prediction may be performed based on intra prediction mode information on the PU provided from the video encoding apparatus. The intra prediction unit 235 may include an AIS (Adaptive Intra Smoothing) filter, a reference pixel interpolation unit, and a DC filter. The AIS filter performs filtering on reference pixels of a current block. The AIS filter may decide whether to apply the filter or not, depending on a prediction mode for the current PU. AIS filtering may be performed on the reference pixels of the current block using the prediction mode for the PU and information on the AIS filter provided from the video encoding apparatus. When the prediction mode for the current block is a mode not performing MS filtering, the AIS filter may not be applied.

When the prediction mode for the PU indicates a prediction mode of performing intra prediction on the basis of pixel values obtained by interpolating the reference pixels, the reference pixel interpolation unit may generate reference pixels in a unit of a fractional pixel less than an integer pixel (i.e. full pixel) by interpolating the reference pixels. When the prediction mode for the current PU indicates a prediction mode of generating a prediction block without interpolating the reference pixels, the reference pixels may not be interpolated. The DC filter may generate a prediction block through filtering when the prediction mode for the current block is the DC mode.

The reconstructed block or picture may be provided to the filter unit 240. The filter unit 240 includes a deblocking filter, an offset unit, and an ALF.

The video encoding apparatus may provide information on whether the deblocking filter is applied to a corresponding block or picture, and information on which of a strong filter and a weak filter is applied when the deblocking filter is used. The deblocking filter of the video decoding apparatus may be provided with information on the deblocking filter from the video encoding apparatus and may perform deblocking filtering on a corresponding block.

The offset unit may apply offset to the reconstructed picture on the basis of information on an offset type and offset value applied to the picture in the encoding process.

The ALF may be applied to a CU on the basis of information on whether the ALF is applied and ALF coefficient information, etc. provided from the encoding apparatus. The ALF information may be included and provided in a specific parameter set.

The memory 245 may store the reconstructed picture or block for use as a reference picture or a reference block and may provide the reconstructed picture to an output unit.

As described above, in the embodiments of the invention, the term “coding unit” is used as an encoding unit for a convenience of descriptions. However, the term “coding unit” may be also used as a unit of decoding.

FIG. 3 illustrates a current picture reference mode according to an embodiment of the present invention.

The block to be decoded (hereinafter, referred to as a current block) may be predicted or restored by referring to a block reconstructed before the current block (hereinafter referred to as a reference block), and the current block and the reference block may belong to the same picture. A method of predicting or restoring a current block with reference to a pre-reconstructed block in the same picture will be referred to as a current picture reference mode.

The current picture reference mode is similar to the intra mode in that the current picture reference mode uses the pre-reconstructed sample value in the same picture, but is different from the intra mode in that the current picture reference mode uses a vector representing the position difference between the current block and the reference block. In addition, the current picture reference mode is similar to the inter mode in that a block vector is used to specify a reference block, but is different from the inter mode in that the current picture reference mode uses a reference block belonging to the same picture as the current block while the inter mode uses a reference block belonging to a different picture from the current block. In case that the image contains a large number of characters such as Hangul or alphabets, if the previous block includes the character to be encoded in the current block, the encoding performance can be improved by using the current picture reference mode.

The video decoding apparatus may determine whether the current block is a block coded in the current picture reference mode. For such determination, mode information (e.g., index, flag) indicating that the current block is a block coded in the current picture reference mode may be signaled. Alternatively, whether the current block is a block coded in the current picture reference mode may be determined by checking the reference picture index of the current block.

For example, if the reference picture index of the current block specifies a picture including the current block, the current block may be predicted/restored based on the current picture reference mode. Otherwise, the current block may be predicted/restored based on a Skip mode, Merge mode or an AMVP (Advanced Motion Vector Prediction) mode.

Referring to FIG. 3, in the current picture reference mode, a neighboring block to the current block (for example, left, top, left-top neighboring block) may be used as a reference block of the current block and a block located at a certain distance in the left, top, or left-top direction may be also used as a reference block of the current block. In order to specify the position of the reference block with reference to the position of the block to be decoded, a vector composed of at least one of the x component and the y component may be used. Hereinafter, the vector will be referred to as a block vector. The block vector may represent the position difference between the current block and the reference block used in the current picture reference mode.

In encoding the block vector, a predicted block vector may be generated through predictive coding and a differential block vector between an original block vector and a prediction block vector may be only encoded. Here, the prediction block vector may be derived from a block vector (or a motion vector) of a neighboring block adjacent to the current block. For example, block vector candidates including a block vector (or motion vector) of at least one neighboring block may be constructed, and one of the block vector candidates may be selectively used based on an index for specifying a block vector of the current block. On the other hand, the prediction block vector is not limited to being derived from a neighboring block adjacent to the current block, and may be derived from a block vector in a maximum coding unit (largest coding unit) including the current block, and may be derived from a block vector in the maximum coding unit row (largest coding unit row) including the current block.

Alternatively, the block vector may be encoded without the above-described predictive coding process. For example, the video encoding apparatus may search for a block most similar to the current block in the same picture, determine the block as a reference block, and calculate a block vector corresponding to a position difference between the current block and the reference block. Then, the video encoding apparatus may divide the calculated block vector into an absolute value component and a sign component, and transmit them to the video decoding apparatus. The video decoding apparatus may recover the block vector by decoding the coded absolute value component and the sign component.

FIG. 4 illustrates a method of restoring the current block based on a current picture reference mode according to an embodiment of the present invention.

Referring to FIG. 4, a reference picture list related to the current picture may be generated based on the current picture reference flag (S400).

The current picture reference flag may indicate whether at least one block (e.g., a coding block, a prediction block) belonging to a video sequence or picture uses the current picture reference mode. The current picture reference flag may be signaled on a video sequence and/or picture basis. For example, when the value of the current picture reference flag is 1, it indicates that at least one block belonging to the current video sequence and/or the current picture uses the current picture reference mode.

The reference picture list related to the current picture may include a picture having a different temporal order from the current picture and restored before the current picture (hereinafter referred to as a temporal reference picture). A method of generating a reference picture list including temporal reference pictures will be described with reference to FIG. 5 to FIG. 7. Here, the temporal reference picture may refer to a picture to which an in-loop filter is applied. The in-loop filter may refer to at least one of the deblocking filter, the sample adaptive offset filter, and the adaptive loop filter described above.

When the current picture uses the current picture reference mode (that is, the value of the current picture reference flag is equal to 1), the current picture may be added to the reference picture list related to the current picture. The current picture may be added to the reference picture list, based on a predetermined priority. An indication “used for short-term reference” or “used for long-term reference” may be marked in the current picture, depending on the position to which the current picture is added in the reference picture list. For example, if the current picture is located between short-term reference pictures, an indication “used for short-term reference” may be marked. Alternatively, if the current picture is located after the long-term reference picture, an indication representing that the current picture is used as the long-term reference picture may be marked in the current picture. In this case, the current picture may be a picture to which an in-loop filter is not applied, unlike the other pictures included in the reference picture list. Alternatively, it may be added to the reference picture list after the in-loop filter is selectively applied to the pre-reconstructed partial area in the current picture. A method of generating a reference picture list including the current picture as a reference picture will be described with reference to FIGS. 8 to 10.

When the blocks belonging to the current picture are encoded in the intra mode and the current picture reference mode, the video encoding apparatus of the present invention encodes the slice type of the current picture into a P slice or a B slice and does not encode it into an I slice. Thus, if the current picture uses the current picture reference mode, the slice type of the current picture may be either a P slice or a B slice. If the slice type of the current picture is an I-slice, the video decoding apparatus does not allow the current picture to use the current picture reference mode.

Referring to FIG. 4, motion information on the current block in the current picture may be obtained (S410).

The motion information of the present invention may include at least one of a motion vector, a block vector, and a reference picture index. Here, the motion vector indicates the position difference between the current block in the current picture and the reference block in the picture of a different time from the current picture, and the block vector indicates the position difference between the current block in the current picture and the reference block in the current picture. However, in the present invention, the term “block vector” is merely used to distinguish these differences, and the block vector may be understood as a concept corresponding to the motion vector.

The motion vector and/or the reference picture index of the current block may be obtained based on a skip mode, a merge mode, or an advanced motion vector prediction (AMVP) mode.

Meanwhile, the block vector of the current block may be obtained by using a predicted block vector and a differential block vector. Here, the prediction block vector may be derived using a motion vector (or a block vector) of a neighboring block spatially/temporally adjacent to the current block. The neighboring blocks of the current block may be limited to only those blocks belonging to a predetermined range within the areas reconstructed before the current block. For example, there may be the restriction that the neighboring block belongs to the largest coding unit including the current block. There may be the restriction that the neighboring block belongs to the largest coding unit row including the current block. Also, if there are a plurality of neighboring blocks, a block closest to the current block in the decoding order may be used.

The block vector of the current block may be obtained using a skip mode, a merge mode, or an advanced motion vector prediction (AMVP) mode as well as the above-described method.

Referring to FIG. 4, the current block may be predicted/restored using the reference picture list of the current picture and the motion information of the current block (S420).

Specifically, the reference picture of the current block may be selected, from the reference picture list, based on the reference picture index of the current block. The motion vector (or block vector) of the current block may be used to specify the reference block in the reference picture. The reconstructed sample of the specified reference block may be used to predict/restore the current block.

If the reference picture selected based on the reference picture index of the current block is the current picture, it may be known that the current block uses the current picture reference mode. That is, the current block determines a reference block at the pre-reconstructed area of the current picture, based on the motion vector (or block vector) derived in step S410, and the reconstructed sample of the reference block may be set as the predicted sample or the restored sample.

When the current picture reference mode is used, the block belonging to the current picture may perform selectively one of a bi-directional prediction (PRED_BI) using a reference picture list 0 (list0) and a reference picture list 1 (list1), a uni-directional prediction (PRED_L0) using a list0 or a uni-directional prediction PRED_L1 using list 1. To this end, the syntax inter_pred_idc indicating PRED_BI, PRED_L0, or PRED_L1 may be signaled on a block-by-block basis. Alternatively, when the current picture reference mode is used, the syntax inter_pred_idc value may be limited to indicate one of PRED_L0 or PRED_L1. Alternatively, it may be limited not to perform bi-directional prediction (PRED_BI) only when the current block has a predetermined shape and/or size. Herein, the predetermined shape may be a case where the partition mode of the current block is a square or a symmetric partition. A predetermined size is one of the block sizes predefined in the video decoding apparatus. A predetermined size may mean the block size for which bi-directional prediction based on the current picture reference mode is allowed. Here, at least one of 4×4, 8×8, 8×4, 4×8, 16×16, etc. may be fixedly set in the video decoding apparatus.

If the current picture reference mode is used, the block belonging to the current picture may performs 1) inter-prediction using the reference block in the current picture and 2) bi-directional prediction including inter prediction using the reference block in the reference picture having a temporal order different from that of the current picture. Here, the block belonging to the current picture may be a block coded in the current picture reference mode, or may be a block coded in the intra/inter mode. The reference block in the reference picture may be a block coded in intra/inter mode. For example, bi-directional prediction may be performed even when the reference block for List 0 is a block coded in the current picture reference mode and the reference block for List 1 is a block coded in the inter/intra mode. Alternatively, bi-directional prediction may be performed even when the reference block for List 0 is a block coded in inter/intra mode and the reference block for List 1 is a block coded in the current picture reference mode.

In this way, the current picture reference mode may be selectively used for the blocks belonging to the current picture, and it may be determined whether the current picture reference mode is used for each block. Here, the block may mean a coding block belonging to a range of a maximum coding block to a minimum coding block and having a predetermined size. Alternatively, the block may mean a prediction block determined according to the partition mode of the coding block, or may be a transform block that is a basic unit for performing the transform.

Whether or not the current picture reference mode is used may be determined based on at least one of a reference picture index of the current block, a slice type, or a partition mode of the current block, and hereinafter, it will be described in detail.

1. Embodiment 1: Method Using Reference Picture Index

Whether or not the current block uses the current picture reference mode may be determined based on the reference picture index of the current block.

Specifically, the picture is selected, from the reference picture list, based on the reference picture index of the current block. When the selected picture is the current picture including the current block, it may be determined that the current block uses the current picture reference mode.

Alternatively, if the value of the current picture reference flag for the current picture is equal to 1, the current picture may be added to the reference picture list. As will be described later with reference to FIG. 5, the current picture may be located last in the reference picture list. Therefore, if the value of the reference picture index of the current block is equal to a value obtained by subtracting 1 from the total number of reference pictures belonging to the reference picture list or a maximum value among the indexes assigned to the reference picture list, it may be determined that the current block uses the current picture reference mode.

Alternatively, whether the current picture reference mode is used or not may be determined by comparing output order information(picture order count) of the current picture with output order information(picture order count) of the reference picture selected by the reference picture index of the current block. For example, when the current block performs a uni-directional prediction (PRED_L0) using the reference picture list 0 (list0), it may be inferred as shown in Equation 1, and when the current block performs the uni-directional prediction (PRED_L1) using the reference picture list 1 (list1), it may be inferred as shown in Equation 2.

curr_pic_as_ref_pu=(DiffPicOrderCnt(RefPicList0[ref_idx_10],currPic)==0)?1:0  [Equation 1]

curr_pic_as_ref_pu=(DiffPicOrderCnt(RefPicList1[ref_idx_11],currPic)==0)?1:0  [Equation 2]

In Equations 1 and 2, if the variable curr_pic_as_ref_pu is equal to 1, it indicates that the current block uses the current picture reference mode. Otherwise, it indicates that the current block does not use the current picture reference mode. DiffPicOrderCnt is a function that outputs “0” when the output order information between the reference picture selected by the reference picture index (e.g., RefPicList0 [ref_idx_10]) and the current picture currPic is the same, and outputs “1” when the output order information is different from each other. And, RefPicList0 and RefPicList1 represent the reference picture list 0 and the reference picture list 1, respectively.

2. Embodiment 2: Method Using Slice Type

The current picture reference mode may be adaptively used according to the slice type. For example, there may be restriction that the current picture reference mode is used only in P slice. In this case, whether or not the current picture reference mode is used may be inferred as shown in the following equation 3.

curr_pic_as_ref_pu=(P_SLICE && DiffPicOrderCnt(RefPicList0[ref_idx_10],currPic)==0)?1:0  [Equation 3]

If the current picture is a P slice and the value of the current picture reference flag is equal to 1, the current picture may be added to the reference picture list 0 and may not be added to the reference picture list 1.

3. Embodiment 3: Method Using Partition Mode

The current picture reference mode may be selectively used according to the partition mode of the coding block. For example, if the partition mode is a symmetric partition, the current picture reference mode may be set to be allowed. Therefore, the value of the partition mode of the coding block in which the current picture reference mode is used may be set to be one of PART_2N×2N, PART_N×2N, PART_2N×N, and PART_N×N. Conversely, in the coding block in which the current picture reference mode is used, it does not have a partition mode of PART_2N×nU, PART_2N×nD, PART_nL×2N, and PART_nR×2N, which are asymmetric partitions.

FIG. 5 illustrates a method of specifying a short-term reference picture stored in a decoding picture buffer according to an embodiment of the present invention.

The temporal reference picture may be stored in the decoding picture buffer (DPB) and used as a reference picture if necessary for inter prediction of the current picture. The temporal reference picture stored in the decoding picture buffer may include a short-term reference picture. The short-term reference picture means a picture in which the difference of output order information (POC) from the current picture is not large.

Information specifying the short-term reference picture to be stored in the decoding picture buffer at the present time is composed of output order information(POC) of the reference picture and a flag indicating whether the current picture directly refer to (for example, used_by_curr_pic_s0_flag, used_by_curr_pic_s1_flag). And, it is referred to as a reference picture set. Specifically, when the value of the used_by_curr_pic_s0_flag [i] is equal to 0, if the i-th short-term reference picture in the short-term reference picture set has a value smaller than the output order (POC) of the current picture, it indicates that the i-th short-term reference picture is not used as a reference picture of the current picture. when the value of the used_by_curr_pic_s1_flag [i] is equal to 0, if the i-th short-term reference picture in the short-term reference picture set has a value larger than the output order (POC) of the current picture, it indicates that the i-th short-term reference picture is not used as a reference picture of the current picture.

Referring to FIG. 5, in the case of a picture having a POC value of 26, all three pictures (i.e., pictures having POC values of 25, 24, and 20) may be used as a short-term reference picture in inter prediction. However, since the value of used_by_curr_pic_s0_flag for the picture having the POC value of 25 is equal to 0, the picture having the POC value of 25 is not directly used for the inter prediction of the picture having the POC value of 26.

Thus, the short-term reference picture may be specified based on output order information (POC) of the reference picture and the flag indicating whether to use as the reference picture of the current picture.

On the other hand, for a picture not shown in the reference picture set for the current picture, an indication (for example, unused for reference) that the picture is not used as a reference picture may be marked and further removed from the decoding picture buffer.

FIG. 6 illustrates a method of specifying a long-term reference picture according to an embodiment of the present invention.

In the case of the long-term reference picture, since the difference between the POC values of the current picture and the long-term reference picture is large, the least significant bit (LSB) and the most significant bit (MSB) of the POC value may be used.

Therefore, the POC value of the long-term reference picture may be derived by using the LSB of the POC value of the reference picture, the POC value of the current picture, and the difference between the MSB of the POC value of the current picture and the MSB of the POC value of the reference picture.

For example, it is assumed that the POC value of the current picture is 331, the maximum value that may be represented by the LSB is 32, and the picture having the POC value of 308 is used as the long-term reference picture.

In this case, the POC value 331 of the current picture may be expressed as 32*10+11, where 10 is the MSB value and 11 is the LSB value. The POC value 308 of the long-term reference picture is represented by 32*9+20, where 9 is the MSB value and 20 is the LSB value. At this time, the POC value of the long-term reference picture may be derived as shown in the equation of FIG. 6.

FIG. 7 illustrates a method of constructing a reference picture list using a short-term reference picture and a long-term reference picture according to an embodiment of the present invention.

Referring to FIG. 7, a reference picture list including a temporal reference picture may be generated by considering whether a temporal reference picture is a short-term reference picture and a POC value of a short-term reference picture. Here, the reference picture list may include at least one of a reference picture list 0 for L0 prediction and a reference picture list 1 for L1 prediction.

Specifically, in the reference picture list 0, the reference pictures may be arranged in an order of a short-term reference picture (RefPicSetCurr0) having a POC value smaller than the current picture, a short-term reference picture (RefPicSetCurr1) having a POC value larger than the current picture, and a long-term reference picture (RefPicSetLtCurr).

In the reference picture list 1, the reference pictures may be arranged in an order of a short-term reference picture (RefPicSetCurr1) having a POC value larger than the current picture, a short-term reference picture (RefPicSetCurr0) having a POC value smaller than the current picture, and a long-term reference picture (RefPicSetLtCurr).

In addition, a plurality of temporal reference pictures included in the reference picture list may be rearranged to improve the coding efficiency of the reference picture index allocated to temporal reference pictures. This may be performed adaptively based on the list rearrangement flag (list_modification_present_flag). Here, the list rearrangement flag is information for specifying whether or not reference pictures in the reference picture list are rearranged. The list rearrangement flag may be signaled for each of the reference picture list 0 and the reference picture list 1.

For example, when the value of the list rearrangement flag (list_modification_present_flag) is equal to 0, the reference pictures in the reference picture list are not rearranged, and only when the value of the list rearrangement flag (list_modification_present_flag) is equal to 1, the reference pictures may be rearranged.

If the value of the list rearrangement flag (list_modification_present_flag) is equal to 1, the reference pictures in the reference picture list may be rearranged using the list entry information list_entry [i]. Here, the list entry information (list_entry [i]) may specify the reference picture and/or the reference picture index to be located at the current position (i.e., the i-th entry) in the reference picture list.

Specifically, the reference picture corresponding to the list entry information (list_entry [i]) may be specified in the reference picture list, and the specified reference picture may be arranged at the i-th entry in the reference picture list.

The list entry information may be obtained by the number of reference pictures contained in the reference picture list or by the maximum reference picture index of the reference picture list. Further, the list entry information may be obtained based on the slice type of the current picture. That is, if the slice type of the current picture is a P slice, the list entry information list_entry_10 [i] for the reference picture list 0 is obtained. If the slice type of the current picture is a B slice, the entry information (list_entry_11 [i]) for the reference picture list 1 may be additionally obtained.

FIGS. 8 to 10 illustrate a method of constructing a reference picture list for a current picture reference mode according to an embodiment to which the present invention is applied.

Referring to FIG. 8, in the reference picture list 0, the reference pictures may be arranged in an order of a short-term reference picture (hereinafter referred to as a first short-term reference picture) having a smaller POC value than the POC value of the current picture, a short-term reference picture having a POC value larger than the POC value of the current picture (hereinafter referred to as a second short-term reference picture), and a long-term reference picture. In the reference picture list 1, the reference pictures may be arranged in an order of a second short-term reference picture, a first short-term reference picture, and a long-term reference picture. Then, the current picture may be arranged after the long-term reference picture, in the reference picture list 0 and the reference picture list 1. An index is assigned to each of the reference pictures arranged in this manner, and an index of the largest value may be assigned to the current picture. Here, the index of the largest value may be derived based on information about the total number of reference pictures contained in the reference picture list. The information about the total number may be encoded by the video encoding apparatus and signaled to the video decoding apparatus. For example, the video encoding apparatus may encode a value obtained by subtracting 1 from the total number of reference pictures included in the reference picture list. In this case, in the video decoding apparatus, the reference picture index of the current picture may be assigned equal to a value of information about the total number.

However, the present invention is not limited to this. As shown in FIGS. 9 and 10, the coding performance of the reference picture list may be improved by adding the current picture before the long-term reference picture.

Referring to FIG. 9, the current picture may be arranged between the short-term reference pictures in the reference picture list. Specifically, in the reference picture list 0, the reference pictures may be arranged in an order of a first short-term reference picture, a current picture, a second short-term reference picture, and a long-term reference picture. In the reference picture list 1, the reference pictures may be arranged in an order of a second short-term reference picture, a current picture, a first short-term reference picture, and a long-term reference picture.

Alternatively, the current picture may be arranged between the short-term reference picture and the long-term reference picture in the reference picture list. Referring to FIG. 10, in the reference picture list 0, the reference pictures may be arranged in an order of a first short-term reference picture, a second short-term reference picture, a current picture, and a long-term reference picture. In the reference picture list 1, the reference pictures may be arranged in an order of a second short-term reference picture, a first short-term reference picture, a current picture, and a long-term reference picture.

FIGS. 8 to 10 illustrate an embodiment of constructing a reference picture list in which the number of each of a short-term reference picture having a smaller POC value than the current picture, a short-term reference picture having a larger POC value than the current picture, and a long-term reference picture is 1. FIGS. 8 to 10 merely illustrate the arrangement order of the reference pictures, and a plurality of short-term reference pictures (i.e., a short-term reference picture set) and long-term reference pictures (i.e., a long-term reference picture set) may be used.

INDUSTRIAL AVAILABILITY

The present invention can be used to code a video signal. 

1. A method of decoding a video signal, the method comprising: generating a reference picture list based on a current picture reference flag for a current picture; obtaining motion information about a current block in the current picture, the motion information including at least one of a motion vector and a reference picture index; and restoring the current block using the motion information of the current block and the reference picture list relating to the current picture, wherein the current picture reference flag indicates whether at least one block belonging to a video sequence or a picture uses a current picture reference mode, and wherein the current picture reference mode refers to a method of predicting or restoring the current block by referring to a pre-reconstructed block in the current picture.
 2. The method of claim 1, wherein the current picture is added to the reference picture list related to the current picture, based on the current picture reference flag.
 3. The method of claim 2, wherein generating the reference picture list comprising: arranging temporal reference pictures used for inter prediction of the current picture, the temporal reference pictures including at least one of a short-term reference picture or a long-term reference picture, and the temporal reference pictures being arranged in a priority order of the short-term reference picture and the long-term reference picture; and arranging the current picture after the arranged temporal reference pictures, based on the current picture reference flag.
 4. The method of claim 1, wherein restoring the current block comprising determining whether or not the current picture reference mode is used in the current block, based on at least one of the reference picture index of the current block, a slice type, or a partition mode.
 5. An apparatus of decoding a video signal, the apparatus comprising: a prediction unit configured to generate a reference picture list based on a current picture reference flag for a current picture, obtain motion information about a current block in the current picture, and restore the current block using the motion information of the current block and the reference picture list relating to the current picture, wherein the current picture reference flag indicates whether at least one block belonging to a video sequence or a picture uses a current picture reference mode, wherein the current picture reference mode refers to a method of predicting or restoring the current block by referring to a pre-reconstructed block in the current picture, and wherein the motion information includes at least one of a motion vector and a reference picture index.
 6. The apparatus of claim 5, wherein the current picture is added to the reference picture list related to the current picture, based on the current picture reference flag.
 7. The apparatus of claim 6, wherein the prediction unit is configured to arrange temporal reference pictures used for inter prediction of the current picture, and generate the reference picture list by arranging the current picture after the arranged temporal reference pictures, based on the current picture reference flag, wherein the temporal reference pictures include at least one of a short-term reference picture or a long-term reference picture, and wherein the temporal reference pictures are arranged in a priority order of the short-term reference picture and the long-term reference picture.
 8. The apparatus of claim 5, wherein the prediction unit is configured to determine whether or not the current picture reference mode is used in the current block, based on at least one of the reference picture index of the current block, a slice type, or a partition mode.
 9. A method of encoding a video signal, the method comprising: generating a reference picture list based on a current picture reference flag for a current picture; obtaining motion information about a current block in the current picture, the motion information including at least one of a motion vector and a reference picture index; and restoring the current block using the motion information of the current block and the reference picture list relating to the current picture, wherein the current picture reference flag indicates whether at least one block belonging to a video sequence or a picture uses a current picture reference mode, and wherein the current picture reference mode refers to a method of predicting or restoring the current block by referring to a pre-reconstructed block in the current picture.
 10. The method of claim 9, wherein the current picture is added to the reference picture list related to the current picture, based on the current picture reference flag.
 11. The method of claim 10, wherein generating the reference picture list comprising: arranging temporal reference pictures used for inter prediction of the current picture, the temporal reference pictures including at least one of a short-term reference picture or a long-term reference picture, and the temporal reference pictures being arranged in a priority order of the short-term reference picture and the long-term reference picture; and arranging the current picture after the arranged temporal reference pictures, based on the current picture reference flag.
 12. The method of claim 9, wherein restoring the current block comprising determining whether or not the current picture reference mode is used in the current block, based on at least one of the reference picture index of the current block, a slice type, or a partition mode.
 13. An apparatus of encoding a video signal, the apparatus comprising: a prediction unit configured to generate a reference picture list based on a current picture reference flag for a current picture, obtain motion information about a current block in the current picture, and restore the current block using the motion information of the current block and the reference picture list relating to the current picture, wherein the current picture reference flag indicates whether at least one block belonging to a video sequence or a picture uses a current picture reference mode, wherein the current picture reference mode refers to a method of predicting or restoring the current block by referring to a pre-reconstructed block in the current picture, and wherein the motion information includes at least one of a motion vector and a reference picture index.
 14. The apparatus of claim 13, wherein the current picture is added to the reference picture list related to the current picture, based on the current picture reference flag.
 15. The apparatus of claim 13, wherein the prediction unit is configured to determine whether or not the current picture reference mode is used in the current block, based on at least one of the reference picture index of the current block, a slice type, or a partition mode. 